package com.mes.controller;


import com.mes.entity.MesEquipment;
import com.mes.service.MesEquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @BelongsPackage: com.mes.controller
 * @Author: 源源瞬转
 * @CreateTime: 2024-10-11  15:17
 * @Description TODO:
 */
@RequestMapping("/MesEquipmentController")
@RestController
public class MesEquipmentController {

    @Autowired
    private MesEquipmentService mesEquipmentService;

    @PostMapping("/listByPageByLike")
    public Map listByPageByLike(Integer pageNum, Integer pageSize, @RequestBody MesEquipment mesEquipment) {
        Map map = mesEquipmentService.listByPageByLike(pageNum, pageSize, mesEquipment);
        return map;
    }

}
